﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_UserCloudData : IUserCloudData
    {
        public void Add(UserCloudData obj)
        {
            CreateFactory.GetUserCloudData().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetUserCloudData().Delete(id);
        }

        public UserCloudData FindById(int id)
        {
            return CreateFactory.GetUserCloudData().FindById(id);
        }

        public List<UserCloudData> GetAll()
        {
            return CreateFactory.GetUserCloudData().GetAll();
        }

        public void Update(int id, UserCloudData obj)
        {
            CreateFactory.GetUserCloudData().Update(id, obj);
        }
    }
}
